package com.dk.api;

import com.dk.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient( value="springcloud-order-service",fallback = OrderFeignApiFallback.class)
public interface OrdersFeignApi {

    @PostMapping ("/order/pay")
    Result pay(@RequestParam Long cid, @RequestHeader("AuthToken") String AuthToken,@RequestParam Long num);

}
